#include "TaskQueue.h"
#include "Consumer.h"
#include <iostream>
#include <unistd.h>
using namespace std;

Consumer::Consumer(){}
Consumer::~Consumer(){}

void Consumer::consume(TaskQueue &taskque){
    int cnt = 20;
    while(--cnt){
        int number = taskque.pop();
        cout << "Consumer number = " << number << endl;
        sleep(1);
    }
};



